scoreboard objectives add dayshower_trigger_day dummy
scoreboard objectives add dayshower_day dummy
scoreboard objectives add dayshower_show_day dummy
scoreboard objectives add dayshower_title dummy
scoreboard objectives add dayshower_actionbar dummy
scoreboard objectives add dayshower_tellraw dummy
scoreboard objectives add dayshower_sounds dummy
scoreboard objectives add dayshower_word_check dummy
scoreboard objectives add dayshower_flash dummy
scoreboard objectives add dayshower_settings trigger
scoreboard objectives add dayshower_leap_year dummy
scoreboard objectives add dayshower_format dummy
scoreboard objectives add dayshower_year dummy
scoreboard objectives add dayshower_leap_today dummy
scoreboard objectives add dayshower_month dummy
scoreboard objectives add dayshower_always_show dummy
scoreboard objectives add dayshower_storge_1 dummy
scoreboard objectives add dayshower_storge_2 dummy
scoreboard objectives add dayshower_storge_3 dummy
scoreboard objectives add dayshower_pages dummy
scoreboard objectives add dayshower_advertisments dummy
scoreboard objectives add dayshower_particles dummy
scoreboard objectives add dayshower_sound_style dummy
scoreboard objectives add dayshower_last_sounds dummy
scoreboard objectives add dayshower_animation_obfuscated dummy
execute as @a run scoreboard players enable @s dayshower_settings

execute as @a unless score @s dayshower_actionbar = @s dayshower_actionbar run scoreboard players set @s dayshower_actionbar 1
execute as @a unless score @s dayshower_title = @s dayshower_title run scoreboard players set @s dayshower_title 0
execute as @a unless score @s dayshower_tellraw = @s dayshower_tellraw run scoreboard players set @s dayshower_tellraw 1
execute as @a unless score @s dayshower_sounds = @s dayshower_sounds run scoreboard players set @s dayshower_sounds 1
execute as @a unless score @s dayshower_word_check = @s dayshower_word_check run scoreboard players set @s dayshower_word_check 1
execute as @a unless score @s dayshower_flash = @s dayshower_flash run scoreboard players set @s dayshower_flash 1
execute as @a unless score @s dayshower_settings = @s dayshower_settings run scoreboard players set @s dayshower_settings 1
execute as @a unless score @s dayshower_format = @s dayshower_format run scoreboard players set @s dayshower_format 0
execute as @a unless score @s dayshower_pages = @s dayshower_pages run scoreboard players set @s dayshower_pages 1
execute as @a unless score @s dayshower_always_show = @s dayshower_always_show run scoreboard players set @s dayshower_always_show 0
execute as @a unless score @s dayshower_particles = @s dayshower_particles run scoreboard players set @s dayshower_particles 0
execute as @a unless score @s dayshower_sound_style = @s dayshower_sound_style run scoreboard players set @s dayshower_sound_style 1
execute as @a unless score @s dayshower_last_sounds = @s dayshower_last_sounds run scoreboard players set @s dayshower_last_sounds 1
execute as @a unless score @s dayshower_animation_obfuscated = @s dayshower_animation_obfuscated run scoreboard players set @s dayshower_animation_obfuscated 0
execute as @a unless score @s dayshower_advertisments = @s dayshower_advertisments run function dayshower:system/rewards

execute as @a if score @s dayshower_settings matches 1 run function dayshower:settings/player_settings
execute as @a if score @s dayshower_settings matches 2 run function dayshower:settings/seeing_seetings
execute as @a if score @s dayshower_settings matches 3 run function dayshower:settings/animation_settings
execute as @a if score @s dayshower_settings matches 4 run function dayshower:settings/sound_settings
execute as @a if score @s dayshower_settings matches 2..4 run scoreboard players set @s dayshower_pages 1

execute as @a store result score @s dayshower_day run time query day
execute as @a unless score @s dayshower_day = @s dayshower_trigger_day run tag @s add dayshower_show_day
execute as @a if score @s dayshower_settings matches 10 run tag @s add dayshower_show_day
execute as @a[